package top.bug.blog.entity.vo.comments;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.bug.blog.common.BasePO;

import java.util.List;

/**
 * @author <a href="https://github.com/jiusi66">九思.</a>
 * @email 10837907@qq.com
 * @from <a href="https://www.52bug.top">递归茶馆-www.52bug.top</a>
 * @description 评论数据视图
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("评论数据视图")
public class CommentsVO extends BasePO {
    @ApiModelProperty("目标id")
    private String targetId;
    @ApiModelProperty("父评论id")
    private String parentId;
    @ApiModelProperty("根评论id")
    private String rootId;
    @ApiModelProperty("被回复者昵称")
    private String replyToNickname;
    @ApiModelProperty("评论类型（1-文章 2-朋友圈）")
    private String targetType;
    @ApiModelProperty("评论昵称")
    private String nickname;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("个人站点")
    private String website;
    @ApiModelProperty("评论内容")
    private String content;
    @ApiModelProperty("IP所在地理位置")
    private String ipRegion;
    @ApiModelProperty("设备类型")
    private String deviceType;
    @ApiModelProperty("浏览器类型")
    private String browser;
    @ApiModelProperty("操作系统")
    private String os;
    @ApiModelProperty("点赞数")
    private Long likeNum;
    @ApiModelProperty("状态: 0-待审核, 1-已发布, 2-垃圾评论")
    private String status;
    @ApiModelProperty("回复数")
    private Long replyNum;
    @ApiModelProperty("是否是管理员评论: 0-否, 1-是")
    private String isAdmin;
    @ApiModelProperty("子评论列表")
    private List<CommentsVO> replies;
}